﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Handrise.Mobile.BasicModal.DataLayer;

namespace Handrise.CDCable.Mobile.Business
{
    [Serializable]
    [EntityMapping(TableName = "User")]
    public class User
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [EntityMapping(IsKey = true, ColumnName = "UserID")]
        public string UserID { get; set; }

        /// <summary>
        /// 用户名（登录名）
        /// </summary>
        [EntityMapping(ColumnName = "UserName")]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [EntityMapping(ColumnName = "Password")]
        public string Password { get; set; }

        /// <summary>
        /// 是否登录
        /// </summary>
        public bool IsValid { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [EntityMapping(ColumnName = "RealName")]
        public string RealName { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        [EntityMapping(ColumnName = "LastLoginDateTime")]
        public DateTime? LastLoginDateTime { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        [EntityMapping(ColumnName = "UnitName")]
        public string UnitName { get; set; }

        /// <summary>
        /// 单位ID 
        /// </summary>
        [EntityMapping(ColumnName = "UnitID")]
        public string UnitID { get; set; }

        /// <summary>
        /// 单位编号
        /// </summary>
        [EntityMapping(ColumnName = "UnitCode")]
        public string UnitCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [EntityMapping(ColumnName = "Remark")]
        public string Remark { get; set; }
    }
}
